<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
	String path=request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>添加专辑</title>
	<link type="text/css" href="<%=path%>/css/addForm.css" rel="stylesheet"/>
	<link rel="stylesheet" href = "<%=path%>/css/tree.css"></link>
	<script type="text/javascript" src="<%=path%>/js/jquery.js"></script>
	<script type="text/javascript" src="<%=path%>/fckeditor/fckeditor.js"></script>
	<script type="text/javascript" src="<%=path%>/js/tree.js"></script>
</head>

<body>
	<h3>添加专辑</h3>
<form action="<%=path%>/album/insertAlbum.dch" method="post">
        <div><span class="formtext">专辑名称:</span><input class="inputbox" type="text" name="album.albumname" maxlength="100"/><span class="error">*</span></div>
        <div><span class="formtext">专辑主演:</span><input class="inputbox" type="text" name="album.actors" maxlength="100"/><span class="error">建议填写</span></div>
        <!-- 
        <div><span class="formtext">视频集数:</span><input class="inputbox" type="text" name="album.count" maxlength="10"/><span class="error">建议填写</span></div>
        <div><span class="formtext">上映时间:</span><input class="inputbox" type="text" name="album.comeoutdate"  maxlength="20"/><span class="error">建议填写</span></div>
        -->
        <div><span class="formtext">图片路径:</span><input class="inputbox" type="text" name="album.picturepath" maxlength="100"/><span class="error">*</span></div>
        <div>
        	<span class="formtext">所属类别:</span>
        	<input type="text" id="sele" name="types"/>
		 	<input type="button" value="选择" onclick="showType();"/>
				 <div id="type">
				  	<ul class="tree" >
						<s:iterator value="root" id="t">
							${t}
						</s:iterator>
				  	</ul>
				</div>
			<div id="load" style="display:none"> <img src="<%=path%>/images/loading.gif"/>Loading data..</div>
            <span class="error">*可选择多个类别</span>
        </div>
        <div>
        	<span class="formtext">设为推荐:</span><input type="checkbox" name="album.recommend"/>
        	<span class="lock">锁定:</span><input type="checkbox" name="album.islock"/>
            <span class="error">错误信息</span>
        </div>
        <div>
          	<textarea name="album.description" cols="30" rows="5"></textarea>
            <span class="error">错误信息</span>
        </div>
        <div>
        	 <span class="button"><input type="submit" value="提交"/></span>
             <span class="button"><input type="reset" value="重置"/></span>
        </div>
    </form>
</body>

<script type="text/javascript">
	var myEditor=new FCKeditor('album.description');
	myEditor.BasePath="${pageContext.request.contextPath}/fckeditor/";
	myEditor.Width="70%";
	myEditor.Height="300";
	myEditor.ReplaceTextarea();
</script>
</html>
